<%@page import="com.shsh.safemanage.model.Department2"%>
<%@page import="com.shsh.safemanage.dao.DepartmentDao"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.EquipmentDao"%>
<%@page import="com.shsh.safemanage.model.Equipment"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.User"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<%
{
Long depart1ID = 0L;

String depart1IDStr = request.getParameter(Constants.REQUEST_PARAMETER_DEPARTMENT1ID);
try {
	depart1ID = new Long(depart1IDStr);
} catch (Exception e) {
}

EquipmentDao theEquipmentDao = DaoCreator.createEquipmentDao();
DepartmentDao theDepartmentDao = DaoCreator.createDepartmentDao();

List<Equipment> equipList = theEquipmentDao.getEquipmentListFromDepart2();
%>
<select id="equipID" onchange="changeEquip()">
	<option value="">-请选择装置-</option>
	<%
	for (Equipment equip : equipList) {
		if (equip.getDepartmentID().equals(depart1ID)) {
	%>
	<option value="<%=equip.getId()%>"%>><%=equip.getEquipName()%></option>
	<%
		}
	}
	%>
</select>
<%
}
%>